<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "zambia_record".
 *
 * @property string $uid
 * @property string $state
 * @property string $user_ip
 * @property integer $create_time
 */
class ZambiaRecord extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'zambia_record';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid'], 'required'],
            [['create_time'], 'integer'],
            [['uid', 'user_ip'], 'string', 'max' => 36],
            [['state'], 'string', 'max' => 2],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'uid' => 'Uid',
            'state' => 'State',
            'user_ip' => 'User Ip',
            'create_time' => 'Create Time',
        ];
    }
}
